﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FitnessJournal8.Models
{
    public class ModelBase : INotifyPropertyChanged
    {
        #region Constant strings
        protected const string CARBOHYDRATE = "Carbohydrate";
        protected const string FAT = "Fat";
        protected const string PROTEIN = "Protein";

        #endregion

        public event PropertyChangedEventHandler PropertyChanged;

        protected void NotifyOfPropertyChange(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
